CVE-2026-22699
RustCrypto SM2-PKE has Unchecked AffinePoint Decoding (unwrap) in decrypt()
Description
RustCrypto: Elliptic Curves is general purpose Elliptic Curve Cryptography (ECC) support, including types and traits for representing various elliptic curve forms, scalars, points, and public/secret keys composed thereof. In versions 0.14.0-pre.0 and 0.14.0-rc.0, a denial-of-service vulnerability exists in the SM2 PKE decryption path where an invalid elliptic-curve point (C1) is decoded and the resulting value is unwrapped without checking. Specifically, AffinePoint::from_encoded_point(&encoded_c1) may return a None/CtOption::None when the supplied coordinates are syntactically valid but do not lie on the SM2 curve. The calling code previously used .unwrap(), causing a panic when presented with such input. This issue has been patched via commit 085b7be.
INFO
Published Date :
Jan. 10, 2026, 6:15 a.m.
Last Modified :
Jan. 22, 2026, 2:53 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | HIGH | [email protected] | ||||
| CVSS 3.1 | HIGH | MITRE-CVE |
Solution
- Update to a version beyond 0.14.0-rc.0.
- Apply commit 085b7be to the affected codebase.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-22699.
| URL | Resource |
|---|---|
| https://github.com/RustCrypto/elliptic-curves/commit/085b7bee647029bd189e1375203418205006bcab | Patch |
| https://github.com/RustCrypto/elliptic-curves/pull/1602 | Issue Tracking Patch |
| https://github.com/RustCrypto/elliptic-curves/security/advisories/GHSA-78p6-6878-8mj6 | Exploit Vendor Advisory |
| https://github.com/RustCrypto/elliptic-curves/security/advisories/GHSA-78p6-6878-8mj6 | Exploit Vendor Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-22699 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-22699
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-22699 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-22699 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Jan. 22, 2026
Action Type Old Value New Value Added CWE NVD-CWE-noinfo Added CPE Configuration OR *cpe:2.3:a:rustcrypto:sm2_elliptic_curve:0.14.0:pre0:*:*:*:rust:*:* *cpe:2.3:a:rustcrypto:sm2_elliptic_curve:0.14.0:rc0:*:*:*:rust:*:* Added Reference Type GitHub, Inc.: https://github.com/RustCrypto/elliptic-curves/commit/085b7bee647029bd189e1375203418205006bcab Types: Patch Added Reference Type GitHub, Inc.: https://github.com/RustCrypto/elliptic-curves/pull/1602 Types: Issue Tracking, Patch Added Reference Type GitHub, Inc.: https://github.com/RustCrypto/elliptic-curves/security/advisories/GHSA-78p6-6878-8mj6 Types: Exploit, Vendor Advisory Added Reference Type CISA-ADP: https://github.com/RustCrypto/elliptic-curves/security/advisories/GHSA-78p6-6878-8mj6 Types: Exploit, Vendor Advisory -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jan. 12, 2026
Action Type Old Value New Value Added Reference https://github.com/RustCrypto/elliptic-curves/security/advisories/GHSA-78p6-6878-8mj6 -
New CVE Received by [email protected]
Jan. 10, 2026
Action Type Old Value New Value Added Description RustCrypto: Elliptic Curves is general purpose Elliptic Curve Cryptography (ECC) support, including types and traits for representing various elliptic curve forms, scalars, points, and public/secret keys composed thereof. In versions 0.14.0-pre.0 and 0.14.0-rc.0, a denial-of-service vulnerability exists in the SM2 PKE decryption path where an invalid elliptic-curve point (C1) is decoded and the resulting value is unwrapped without checking. Specifically, AffinePoint::from_encoded_point(&encoded_c1) may return a None/CtOption::None when the supplied coordinates are syntactically valid but do not lie on the SM2 curve. The calling code previously used .unwrap(), causing a panic when presented with such input. This issue has been patched via commit 085b7be. Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Added CWE CWE-20 Added Reference https://github.com/RustCrypto/elliptic-curves/commit/085b7bee647029bd189e1375203418205006bcab Added Reference https://github.com/RustCrypto/elliptic-curves/pull/1602 Added Reference https://github.com/RustCrypto/elliptic-curves/security/advisories/GHSA-78p6-6878-8mj6